package com.rd.student.dashuju.sunwenzhuo.day0731;

import java.util.ArrayList;
import java.util.Collections;

public class Test5 {
    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        for (int i = 0; i < 50; i++) {
            list.add(i);
        }
        Collections.shuffle(list);
        for (int i = 0; i < 20; i++) {
            System.out.println(list.get(i));
        }

    }
}
